package com.lcj.eduCms;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.context.annotation.ComponentScan;

/**
 * @Author：LCJ
 * @Description：
 * @Date：Create in 13:46 2021/3/22 0022
 */
@SpringBootApplication
@ComponentScan(basePackages = {"com.lcj"})
@MapperScan("com.lcj.eduCms.mapper")
@EnableDiscoveryClient
public class CmsApplication extends SpringBootServletInitializer {

    @Override
    protected SpringApplicationBuilder configure(SpringApplicationBuilder builder) {
        return builder.sources(CmsApplication.class);
    }
    public static void main(String[] args) {
        SpringApplication.run(CmsApplication.class,args);
    }
}
